<div class="publications index">
	<h2><?php __('Publications');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
			<th>Type of Publication<?php //echo $this->Paginator->sort('typeofpublication');?></th>
			<th>Title<?php //echo $this->Paginator->sort('title');?></th>
			<th>Published by<?php echo $this->Paginator->sort('publishedby');?></th>
			<th>Date<?php //echo $this->Paginator->sort('date');?></th>
<!--			<th><?php //echo $this->Paginator->sort('user_id');?></th>-->
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($publications as $publication):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['typeofpublication']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['title']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['publishedby']; ?>&nbsp;</td>
		<td><?php echo $publication['Publication']['date']; ?>&nbsp;</td>
<!--		<td>
			<?php //echo $this->Html->link($publication['User']['id'], array('controller' => 'users', 'action' => 'view', $publication['User']['id'])); ?>
		</td>-->
		<td class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $publication['Publication']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('controller' => 'publications','action' => 'edit', $publication['Publication']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('controller' => 'publications','action' => 'delete', $publication['Publication']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $publication['Publication']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	
</div>
